package pro.softzhang.algo.lc1400;

import pro.softzhang.algo.flag.theme.TMath;

@TMath
public class LC1486_XorOperationInAnArray {
    public static void main(String[] args) {

    }

    static class Solution {
        public int xorOperation(int n, int start) {
            int r = 0;
            for(int i = 0; i < n; i++)
                r ^= start + 2 * i;
            return r;
        }
    }
}
